<?
    include "../common.php";
    $page = $_POST['page'];
    $perPage = $_POST['perPage'];
    $pageSt = ( $_POST['page'] - 1 ) * $_POST['perPage'] ; 
    $sql = "SELECT * FROM users WHERE ulevel = 3 AND isDelete = 1 ORDER BY id ASC LIMIT $pageSt,$perPage";
    $res = mysqli_query($link,$sql);
    $arr = [] ;
    while( $one = mysqli_fetch_assoc($res) ){
        $arr[] = $one ; 
    }
    echo json_encode($arr);
?>